package cn.cs.fallback;

import cn.cs.client.AgentClient;
import cn.cs.common.Dto;
import cn.cs.common.Page;
import cn.cs.pojo.Agent;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class AgentFallBack implements AgentClient {


    @Override
    public Agent getAgentById(String id) throws Exception {
        return null;
    }

    @Override
    public List<Agent> getAgentByNamePhone(String name, String person, String phone) throws Exception {
        return null;
    }

    @Override
    public Agent getAgentByCode(String invitationCode) throws Exception {
        return null;
    }

    @Override
    public List<Agent> getAgentByPCode(String invitationCode) throws Exception {
        return null;
    }

    @Override
    public List<Agent> getAgentListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public List<Agent> getAgentAllListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getAgentCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer addAgent(Agent agent) throws Exception {
        return null;
    }

    @Override
    public Integer modifyAgent(Agent agent) throws Exception {
        return null;
    }

    @Override
    public Integer deleteAgentById(String id) throws Exception {
        return null;
    }

    @Override
    public Long getMaxCode() throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getAgentAreaListById(String agentId) throws Exception {
        return null;
    }

    @Override
    public Integer addAgentArea(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer deleteAgentAreaById(String id) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getProvinceList() throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getCityListByPid(String agentId) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getAreaListByPid(String agentId, List<Map<String, Object>> list) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getAreasListByPid(String agentId) throws Exception {
        return null;
    }

    @Override
    public Long getUserNumberByAgentCode(String invitationCode) throws Exception {
        return null;
    }

    @Override
    public Long getShopNumberByAgentCode(String invitationCode) throws Exception {
        return null;
    }

    @Override
    public Long getAgentBNumberByAgentCode(String invitationCode) throws Exception {
        return null;
    }

    @Override
    public Long getAgentNumberByAgentCode(String invitationCode) throws Exception {
        return null;
    }

    @Override
    public String getAgentAreaTwoById(String id) {
        return null;
    }

    @Override
    public Map<String, Object> getAgentBYPhone(String phone) throws Exception {
        return null;
    }

    @Override
    public String getAreaByProvinceId(String provinceId) {
        return null;
    }

    @Override
    public Map<String, Object> getFirstByProvinceId(String id) throws Exception {
        return null;
    }

    @Override
    public Integer insertAgentAreaList(List<Map<String, Object>> list) {
        return null;
    }

    @Override
    public Integer updateAgentType(String parent_invitation_code, String agent_area, String old_invitation_code, String id) {
        return null;
    }

    @Override
    public Map<String, Object> getAgentAreaByInvitationCode(String parent_invitation_code, String agent_area) {
        return null;
    }

    @Override
    public Map<String, Object> getAgentAreaById(String id) {
        return null;
    }

    @Override
    public List<Map<String, Object>> getAreaProvince(String agentId) {
        return null;
    }

    @Override
    public List<Map<String, Object>> getAreaCity(String agentId, String pId) {
        return null;
    }

    @Override
    public List<Map<String, Object>> getAreaArea(String agentId, String pId) {
        return null;
    }

    @Override
    public List<Map<String, Object>> getAgentByArea(String area) throws Exception {
        return null;
    }

    @Override
    public Map<String, String> getAgentABIdByCode(String invitationCode) throws Exception {
        return null;
    }

    @Override
    public List<Agent> getAgentByOnlyArea(String area) throws Exception {
        return null;
    }

    @Override
    public int checkInvitationCode(String invitationCode) {
        return 0;
    }

    @Override
    public List<Map<String, Object>> getAgentAreaAll() {
        return null;
    }

    @Override
    public List<Map<String, Object>> getAgentAreasByAgentId(String agentId) throws Exception {
        return null;
    }
}
